package net;

import java.rmi.RemoteException;
import java.util.Date;

import logic.Report;
import net.rmi.Reporter;

public class SocketReporter implements Reporter {
	private final RemoteMethod rm;

	public SocketReporter(RemoteMethod rm) {
		this.rm = rm;

	}

	public Report report(String agent, String field, Date dateStart,
			Date dateEnd) throws RemoteException {
		return (Report) rm.operation("report", agent, field, dateStart, dateEnd);
	}

}
